package com.huawang.mdesign.model.service.dto;

import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author baibf
 * @description 单元格中批量创建元素DTO
 * @date 2023/11/9 17:00
 **/
@Data
public class BatchCreateElementInCellDTO {

    private String projectId;

    @Schema(title = "模型类型")
    @NotBlank(message = ParamErrorConstants.NO_METACLASS)
    private String metaclass;

    @Schema(title = "应用构造型")
    private List<String> applyStereotypes;

    @Schema(title = "模型类别 0：普通模型 1：关系")
    @NotNull(message = ParamErrorConstants.NO_TYPE)
    private Integer type;

    @Schema(title = "创建的关系信息")
    private List<RelationshipInfo> relationshipInfos;
}
